home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 March
/
EnigmA AMIGA RUN 05 (1996)(G.R. Edizioni)(IT)[!][issue 1996-03][Skylink CD IV].iso
/
earcd
/
util1
/
reboot.lha
/
reboot.readme
< prev
Wrap
Text File
|
1994-11-21
|
3KB
|
65 lines
############################################################################
## MF reboot - perform cold reboot from a Shell command ##
## ##
## Written by: Max Francis (francism@cs.man.ac.uk) ##
## Date: 13/03/94 ##
############################################################################
Do what? Why not just press <CTRL-A-A>?!?!??
Well, my A500 was connected to my A1200 by PARnet and, being the slave
machine, it was on its side down the side of the desk. In other words, the
keyboard was inaccessible. I usually had PARnet keys going so that I could
use the A500 from my A1200's keyboard. BUT, when I wanted to reset the A500,
I couldn't!
So I wrote "reboot", to be able to reboot an Amiga from a remote keyboard
without actually having to press <CTRL-A-A> on its keyboard.....
"reboot" when typed at a shell, will respond "Cold Reboot? Confirm (y/n)"
and you should type "y" <RETURN> to perform a reset, or anything else to
abort.
There is also another version in the archive called "ColdReboot", this
performs a cold reboot immediately without any confirmation. This is
intended mainly for use from shell scripts or maybe ARexx.
WARNING: There is absolutely *nothing* in the least bit "clean" or
"friendly" about this reboot, it is just as if you had pressed
<CTRL-A-A>. All it does is call the Exec Library reboot command!
SUMMARY: reboot.readme - This file.
reboot - Perform system reboot, asking for confirmation,
On typing "reboot", it will respond with:
Cold Reboot? Confirm (y/n)
Pressing anything other than "y" or "Y" will
abort and the system will not reboot.
ColdReboot - Perform system reboot IMMEDIATELY
reboot.c - The C source code of reboot (as you can see, it
is an _extremely_ complex program...)
ColdReboot.c - The C source code of ColdReboot
(I have provided the source code for people's *interest*, edit it for your
own use, but please don't give it to anyone else editted [without
consulting me])
INSTALLATION
Basically, I'd recommend copying "reboot" to the c: directory of the computer
you're going to want to reboot, and keeping ColdReboot somewhere else for use
in shell-scripts, etc. (perhaps security on your startup-sequence).
**These programs require Kickstart 2.0 and above**
If you find a use for this program, or if you think it's crap, let me know on
email (address above) or on normal mail at:
Max Francis
7 Forest Drive
Keston Park
Keston
Kent
BR2 6EE
=====> Look out for "DFREE" - show free disk space from a shell command
=====> and coming soon - "ICON" give an object an icon of a specified type.